/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */
package com.pig4cloud.pigx.shop.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 轮播图
 *
 * @author pig code generator
 * @date 2023-11-14 13:49:12
 */
@Data
@TableName("goods_banner")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "轮播图")
public class GoodsBanner extends Model<GoodsBanner> {

	/**
	 * id
	 */
	@TableId(value = "id", type = IdType.ASSIGN_ID)
	@Schema(description = "id")
	private Long id;

	/**
	 * 轮播图名称
	 */
	@Schema(description = "轮播图名称")
	private String bannerName;

	/**
	 * 轮播图图片
	 */
	@Schema(description = "轮播图图片")
	private String bannerImage;

	/**
	 * 跳转类型 1: 商品 2: 网页
	 */
	@Schema(description = "跳转类型 1: 商品 2: 网页")
	private String navType;

	/**
	 * 地址
	 */
	@Schema(description = "地址")
	private String navUrl;

	/**
	 * 商品SPUID
	 */
	@Schema(description = "商品SPUID")
	private Long spuId;

	/**
	 * 商品SKUID
	 */
	@Schema(description = "商品SKUID")
	private Long skuId;

	/**
	 * 上架状态 1: 上架 0: 下架
	 */
	@Schema(description = "上架状态 1: 上架 0: 下架")
	private String status;

	/**
	 * 排序
	 */
	@Schema(description = "排序")
	private Integer sort;

	/**
	 * 删除标记
	 */
	@Schema(description = "删除标记")
	@TableLogic
	private String delFlag;

	/**
	 * 创建人
	 */
	@TableField(fill = FieldFill.INSERT)
	@Schema(description = "创建人")
	private String createBy;

	/**
	 * 修改人
	 */
	@TableField(fill = FieldFill.UPDATE)
	@Schema(description = "修改人")
	private String updateBy;

	/**
	 * 创建时间
	 */
	@Schema(description = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;

	/**
	 * 修改时间
	 */
	@Schema(description = "修改时间")
	@TableField(fill = FieldFill.UPDATE)
	private LocalDateTime updateTime;

}
